package com.szu.subject.ui.service;

import java.util.List;
import java.util.Map;

import com.szu.subject.domains.Course;
import com.szu.subject.domains.Student;
import com.szu.subject.domains.User;

/**
 * account 的service层
 * 
 * @author Shenxiaolin
 *
 */
public interface UserService {

	/**
	 * 通过id获得账户信息
	 * 
	 * @param id
	 *            账户id
	 * @return
	 */
	public User getUserByPK(Long id);

	public User createUser(User user);

	public User updateUser(User user);

	public int deleteUser(Long id);

	public List<User> batchCreateUsers(List<User> users);

	public List<User> batchUpdateUsers(List<User> users);

	public int batchDeleteUsers(List<Long> ids);

	public User getUserByAccount(String account);

	public List<User> getAllUsers();

}
